fixed error messages of JSON parsing is failed#12
fixed error messages of JSON parsing is failed#12ivan-demchenko wants to merge 4 commits intoAPIs-guru:masterfrom
Conversation
|
@raqystyle Thanks for PR, cool feature 👍 I would merge it either way, just one suggestion it would be better if you just wrap |
|
@IvanGoncharov I had the same idea of a separate npm package and already looking into differences between platforms ;) As to your suggestion, I hope I got your idea correctly ;) UPD: the PR's been updated |
ab8ff7e to
19d9c53
Compare
|
@raqystyle Looks good for me 👍 |
|
Should we allow the optional |
|
@MikeRalphson I agree. I've started on this little lib, the core idea of which is to just provide a better error message. |
|
@IvanGoncharov @MikeRalphson I've updated the PR ;) |
|
@MikeRalphson this is a very good point. Fixed ;) |
I stumbled upon a nasty behaviour. I had an issue with one of the 100+ schemas is my RAML and it took me a few hours to debug the code and find out that the reason was a missing comma.
Now, if JSON parsing has failed, it will show the place where the issue is: